# -*- coding:utf-8 -*-
__author__ = 'maruimin'

from rest_framework import serializers

from wedding_info.models import Wedding_Info
from user.models import User
from message.models import Message


class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'


class MessageSerializer(serializers.ModelSerializer):
    class Meta:
        model = Message
        fields = '__all__'


class WeddingInfoSerializer(serializers.ModelSerializer):
    user = UserSerializer()
    message = MessageSerializer()
    class Meta:
        model = Wedding_Info
        fields = '__all__'